﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Windows.Forms;
using System.Configuration;

namespace ReportsApp
{
    static class Program
    {
        /// <summary>
        /// The main entry point for the application.
        /// </summary>
        [STAThread]
        static void Main()
        {
            try
            {
                string IsSplashScreenEnabled = ConfigurationManager.AppSettings.Get("IsSplashScreenEnabled");
                Application.EnableVisualStyles();
                Application.SetCompatibleTextRenderingDefault(false);

                if (IsSplashScreenEnabled == null || bool.Parse(IsSplashScreenEnabled))
                    Application.Run(new SplashScreen());
                Application.Run(new Form1());
            }
            catch (Exception)
            {
            }
        }
    }
}
